| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

KeyboardDevice.h
1 // KeyboardDevice.h
3 //
5
6 namespace nkInputs
7 {
20 class KeyboardDevice
21 {
22 public :
23
24 // Constructor, destructor
30 KeyboardDevice (System* system) noexcept ;
34 virtual ~KeyboardDevice () ;
35
36 // Getters
40 System* getSystem () const ;
45 virtual bool isKeyDown (KEY_CODE keyCode) = 0 ;
46
50 virtual void update () = 0 ;
51
52 public :
53
61 static nkMemory::UniquePtr<KeyboardDevice> create (System* system = nullptr) ;
62 } ;
63 }
nkInputs::KeyboardDevice::getSystem
System * getSystem() const
nkInputs::KeyboardDevice::update
virtual void update()=0
nkInputs::KeyboardDevice::KeyboardDevice
KeyboardDevice(System *system) noexcept
nkInputs::KeyboardDevice::create
static nkMemory::UniquePtr< KeyboardDevice > create(System *system=nullptr)
nkInputs::KeyboardDevice::isKeyDown
virtual bool isKeyDown(KEY_CODE keyCode)=0
nkInputs::KeyboardDevice
A keyboard device.
Definition: KeyboardDevice.h:21
nkInputs::System
Main interface with the component.
Definition: System.h:38
nkInputs
Encompasses all API of component NilkinsInputs.
Definition: KeyboardDevice.h:7
nkInputs::KeyboardDevice::~KeyboardDevice
virtual ~KeyboardDevice()
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition: UniquePtr.h:17
nkInputs::KEY_CODE
KEY_CODE
Available key codes.
Definition: KeyCode.h:12